package com.organ.base.util;

public class Result {
	/**
	 * 返回代码值
	 */
	private Integer code;
	/**
	 * 返回信息
	 */
	private String message;
	/**
	 * 返回json数据或者boolean值
	 */
	private Object data;
	
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Object getresult() {
		return data;
	}
	public void setresult(Object result) {
		this.data = result;
	}
	public Result(Integer code, String message, Object result) {
		super();
		this.code = code;
		this.message = message;
		this.data = result;
	}
	public Result(Integer code, String message) {
		super();
		this.code = code;
		this.message = message;
	}
	public Result(Integer code) {
		super();
		this.code = code;
	}
	public Result(Integer code, Object result) {
		super();
		this.code = code;
		this.data = result;
	}
}
